package com.jwtproject.bootserver.model;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

@Data
public class User implements Serializable {

    private static final long serialVersionUID = 1L;
    /**
    * 用户表id
    */
    @TableId(value = "id", type = IdType.UUID)
    private String id;

    /**
    * 用户账户
    */
    private String account;

    /**
    * 手机号
    */
    private String phone;

    /**
    * 密码
    */
    private String password;

    /**
    * 创建时间
    */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /**
    * 修改时间
    */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
}